package com.youlu.campus.web.common;


import com.youlu.campus.common.exception.ApiErrorCode;

/**
 * 内容管理错误码
 */
public enum CmsErrorCode implements ApiErrorCode {
    PARAM_ERROR(4000, "参数错误"),
    DATA_NOT_EXIST(4001, "数据不存在");

    private final int code;

    private final String message;

    CmsErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
